import request from "../utils/request"

export const fetchCode = mobile => {
    return request.get(`/sms/codes/${mobile}`)
}

// 登录
export const fetchLogin = data => {
    return request({
        method: "POST",
        url: "/authorizations",
        data
    })
}